package org.ejc.persist.model;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Set;
import org.apache.commons.lang.builder.ToStringBuilder;


/** @author Hibernate CodeGenerator */
public class Convention implements Serializable {

    /** identifier field */
    private Integer conventionId;

    /** nullable persistent field */
    private String conventionName;

    /** nullable persistent field */
    private Date conventionStartdate;

    /** nullable persistent field */
    private Date conventionEnddate;

    /** nullable persistent field */
    private String conventionWebaddress;
    
    /** nullable persistent field */
    private String conventionStatus;
    
    /** nullable persistent field */
    private Timestamp conventionStatusLastActive;

    /** nullable persistent field */
    private Timestamp conventionStatusLastInActive;
    
    /** persistent field */
    private org.ejc.persist.model.Address address;

    /** persistent field */
    private Set transactions;

    /** persistent field */
    private Set events;

    /** persistent field */
    private Set conventionExecutives;

    /** persistent field */
    private Set conventionRegistrants;
    
    /** persistent field */
    private Set conventionActivityHistories;

    /** full constructor */
    public Convention(Integer conventionId, String conventionName, Date conventionStartdate, Date conventionEnddate, String conventionWebaddress, org.ejc.persist.model.Address address, Set transactions, Set events, Set conventionExecutives, Set conventionRegistrants,Set _conventionActivityHistories) {
        this.conventionId = conventionId;
        this.conventionName = conventionName;
        this.conventionStartdate = conventionStartdate;
        this.conventionEnddate = conventionEnddate;
        this.conventionWebaddress = conventionWebaddress;
        this.address = address;
        this.transactions = transactions;
        this.events = events;
        this.conventionExecutives = conventionExecutives;
        this.conventionRegistrants = conventionRegistrants;
        this.conventionActivityHistories=_conventionActivityHistories;
    }

    /** default constructor */
    public Convention() {
    }

    /** minimal constructor */
    public Convention(Integer conventionId, org.ejc.persist.model.Address address, Set transactions, Set events, Set conventionExecutives, Set conventionRegistrants) {
        this.conventionId = conventionId;
        this.address = address;
        this.transactions = transactions;
        this.events = events;
        this.conventionExecutives = conventionExecutives;
        this.conventionRegistrants = conventionRegistrants;
    }

    public Integer getConventionId() {
        return this.conventionId;
    }

    public void setConventionId(Integer conventionId) {
        this.conventionId = conventionId;
    }

    public String getConventionName() {
        return this.conventionName;
    }

    public void setConventionName(String conventionName) {
        this.conventionName = conventionName;
    }

    public Date getConventionStartdate() {
        return this.conventionStartdate;
    }

    public void setConventionStartdate(Date conventionStartdate) {
        this.conventionStartdate = conventionStartdate;
    }

    public Date getConventionEnddate() {
        return this.conventionEnddate;
    }

    public void setConventionEnddate(Date conventionEnddate) {
        this.conventionEnddate = conventionEnddate;
    }

    public String getConventionWebaddress() {
        return this.conventionWebaddress;
    }

    public void setConventionWebaddress(String conventionWebaddress) {
        this.conventionWebaddress = conventionWebaddress;
    }

    
    public String getConventionStatus() {
        return this.conventionStatus;
    }

    public void setConventionStatus(String conventionStatus) {
        this.conventionStatus = conventionStatus;
    }

    public Timestamp getConventionStatusLastActive(){
    	return conventionStatusLastActive;
    }
    
    public void setConventionStatusLastActive(Timestamp d){
    	conventionStatusLastActive=d;
    }
    
    public void setConventionStatusLastActive(java.util.Date _d){
    	Timestamp tm=new Timestamp(_d.getTime());
    	conventionStatusLastActive=tm;
    }
    
    
    
    public Timestamp getConventionStatusLastInActive(){
    	return conventionStatusLastInActive;
    }
    
    public void setConventionStatusLastInActive(Timestamp d){
    	conventionStatusLastInActive=d;
    }
    
    public void setConventionStatusLastInActive(java.util.Date _d){
    	Timestamp tm=new Timestamp(_d.getTime());
    	conventionStatusLastInActive=tm;
    } 
    
  
    
    
    
    public org.ejc.persist.model.Address getAddress() {
        return this.address;
    }

    public void setAddress(org.ejc.persist.model.Address address) {
        this.address = address;
    }

    public Set getTransactions() {
        return this.transactions;
    }

    public void setTransactions(Set transactions) {
        this.transactions = transactions;
    }

    public Set getEvents() {
        return this.events;
    }

    public void setEvents(Set events) {
        this.events = events;
    }

    public Set getConventionExecutives() {
        return this.conventionExecutives;
    }

    public void setConventionExecutives(Set conventionExecutives) {
        this.conventionExecutives = conventionExecutives;
    }

    public Set getConventionRegistrants() {
        return this.conventionRegistrants;
    }

    public void setConventionRegistrants(Set conventionRegistrants) {
        this.conventionRegistrants = conventionRegistrants;
    }

    public Set getConventionActivityHistories(){
    	return conventionActivityHistories;
    }
    public void setConventionActivityHistories(Set _conventionActivityHistories){
    	conventionActivityHistories=_conventionActivityHistories;
    }
    
    
    public String toString() {
        return new ToStringBuilder(this)
            .append("conventionId", getConventionId())
            .toString();
    }

}
